import java.util.Properties;

/**
 * @Author: fxy
 * @Date: 2021/12/27/17:24
 * @Description:
 */
public class Main {
    public static void main(String[] args) {
        //获取所有的属性
        Properties properties = System.getProperties();
        //遍历所有的属性
        for (String key : properties.stringPropertyNames()) {
            //输出对应的键和值
            System.out.println(key + "=" + properties.getProperty(key));
        }
    }
}
